//
//  YCAlertAction.h
//  YCAlertController
//
//  Created by Yochia on 2017/1/12.
//  Copyright © 2017年 Team Brutal. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, YCAlertActionStyle) {
    YCAlertActionStyleDefault = 0,
    YCAlertActionStyleCancel,
    YCAlertActionStyleDestructive
};

@interface YCAlertAction : NSObject

@property (nonatomic, strong) NSString * title;
@property (nonatomic) YCAlertActionStyle style;

typedef void (^YCAlertActionHandler)(YCAlertAction * action);
@property (nonatomic, copy) YCAlertActionHandler handler;

@property (nonatomic) BOOL enabled;

+ (instancetype)actionWithTitle:(NSString *)title style:(YCAlertActionStyle)style handler:(YCAlertActionHandler)handler;

@end
